package com.cplatform.spring.aop.advisor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyAdvisor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("berfor invoke");
        Object proceed = invocation.proceed();
        System.out.println("after invoke");
        return proceed;
    }
}
